package com.sunnada.demo.log.bean;

import com.sunnada.demo.log.annotation.LogField;
import lombok.Data;
import org.bson.types.ObjectId;

import javax.persistence.Id;
import java.util.Date;

/**
 * @program: mybatisproject2
 * @description: 系统日志
 * @author: 李瑞益
 * @create: 2018-10-28 14:26
 **/
@Data
public class SystemLog {
    @LogField(value = "注解",primaryKey = true)
    private ObjectId id;

    private String userName;

    private Long userId;

    private String userRole;

    /**操作的url*/
    private String url;

    /**操作的类*/
    private String className;

    /**创建时间*/
    private Date createTime;

}
